package com.fmsz.xmly.activitys.myselfactivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.fmsz.xmly.R;

public class MyCollectionActivity extends AppCompatActivity implements View.OnClickListener {
    private Button lookRecommend;
    private TextView count;
    private ImageView btn_back_collection;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_collection);
        lookRecommend = (Button) findViewById(R.id.lookRecommend);
        lookRecommend.setOnClickListener(this);
        count = (TextView) findViewById(R.id.count);
        count.setOnClickListener(this);
        btn_back_collection= (ImageView) findViewById(R.id.btn_back_collection);
        btn_back_collection.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.lookRecommend:
                Toast.makeText(this, "看看推荐", Toast.LENGTH_SHORT).show();
                break;
            case R.id.count:
                Intent count = new Intent(this, LoginActivity.class);
                startActivity(count);
                break;
            case R.id.btn_back_collection:
                finish();
                break;
        }
    }
}
